<template>
    <div>
        <UserItem 
            v-for="user in onlineUsers"
            :key="user.id"
            :userName="user.userName"
        />
    </div>
</template>

<script>
import UserItem from './UserItem.vue'

export default {
    name: 'Userlist',
    components:{
        UserItem
    },
    props:{
        onlineUsers: Array
    },
}
</script>

<style>

</style>